package com.avengers.common.bean.enums;

/**
 * @author yu.wang
 * @since 4/16/24 9:50 AM
 **/
public enum CommonQueueType {
    /**
     * 发送短信
     */
    sendSms(1),
    /**
     * GoDaddy 一口价转入
     */
    goDaddyTransferIn(2);

    public final Integer value;

    CommonQueueType(Integer value) {
        this.value = value;
    }

    public static CommonQueueType of(Integer value) {
        if (null == value) {
            return null;
        }
        for (CommonQueueType queueType : values()) {
            if (queueType.value.equals(value)) {
                return queueType;
            }
        }
        return null;
    }
}
